package com.industrial.premu.controller;

import com.industrial.common.core.web.controller.BaseController;
import com.industrial.common.core.web.domain.AjaxResult;
import com.industrial.common.core.web.page.TableDataInfo;
import com.industrial.premu.domain.SysOperError;
import com.industrial.premu.service.ISysOperErrorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sys_oper_error")
public class SysOperErrorController extends BaseController {

    @Autowired
    private ISysOperErrorService sysOperErrorService;

    @GetMapping("/list")
    public TableDataInfo list(SysOperError sysOperError){
        startPage();
        List<SysOperError> list = sysOperErrorService.list(sysOperError);
        return getDataTable(list);
    }
}
